﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Wangzeran.CodeMaker.Core.Template
{
    /// <summary>
    /// 模板支持
    /// </summary>
    public interface ITemplate
    {
        /// <summary>
        /// 模板名称
        /// </summary>
        string TemplateName
        {
            get;
        }

        /// <summary>
        /// 执行模板
        /// </summary>
        /// <param name="templatePath">模板文件</param>
        /// <returns>模板结果</returns>
        string ExecuteTempldate(string templatePath, object value, out string fileName);

        /// <summary>
        /// 执行模板
        /// </summary>
        /// <param name="contents">模板内容</param>
        /// <param name="value">模板值</param>
        /// <returns>模板结果</returns>
        string ExecuteTempldateContents(string templatePath, string contents, object value, out string fileName);
    }
}
